#ifndef STATUSDISPLAY_H
#define STATUSDISPLAY_H

#include <QMainWindow>

namespace Ui {
    class statusDisplay;
}

class statusDisplay : public QMainWindow
{
    Q_OBJECT

public:
    explicit statusDisplay(QWidget *parent = 0);
    ~statusDisplay();

signals:
    //serial settings
    void baudSet(long baud);

    void portNameSet(QString newPortName);    //char *newPortName);

    bool startSerial();

    void stopSerial();

public slots:
    //post messages in the serialLogText box
    void logMessage(QString message);

    void serialfailure();

    //setting the sliders
    void tipSet(char value);

    void middleSet(char value);

    void knuckleSet(char value);

    void sweepSet(char value);

    void openSet(char value);

private slots:
    void on_startButton_clicked();

    void on_stopButton_clicked();

    void on_quitButton_clicked();

    void on_tipSlider_valueChanged(int value);

    void on_middleSlider_valueChanged(int value);

    void on_knuckleSlider_valueChanged(int value);

    void on_sweepSlider_valueChanged(int value);

    void on_openSlider_valueChanged(int value);

    void on_serialPortLine_textChanged(const QString &arg1);

    void on_serialSpeedLine_textChanged(const QString &arg1);

    void on_pushButton_clicked();

private:
    void readSettings();
    void writeSettings();
    Ui::statusDisplay *ui;
};

#endif // STATUSDISPLAY_H
